import request from '@/api/request.js'

// list
export const getAllPic = (params) => {
    return request({
        url: '/slideshow/getAllFiles',
        method: 'GET'
    })
}

// 上传
export const uploadPic = (data) => {
    return request({
        url: '/slideshow/uploadFiles',
        method: 'POST',
        data
    })
}

// 删除
export const delPic = (data) => {
    return request({
        url: '/slideshow/deleteDocxFilesByUUID',
        method: 'DELETE',
        data
    })
}
// 查看
export const previewPic = (path) => {
    return request({
        url: `/slideshow/getProfileImage?img_path=${path}`,
        method: 'GET'
    })
}
